
set(MOBILE_CURTAIN_SOURCES
        curtain/curtain.h
        curtain/curtain.cpp
        curtain/fullscreenwindow.h
        curtain/fullscreenwindow.cpp
        )
source_group(curtain FILES ${MOBILE_CURTAIN_SOURCES})

set(MOBILE_PCSCREEN_SOURCES
        pcscreen/pcscreen.h
        pcscreen/pcscreen.cpp
        )
source_group(pcscreen FILES ${MOBILE_PCSCREEN_SOURCES})

set(CONTROL_SOURCES
        control/control.h
        control/control.cpp
        )
source_group(control FILES ${CONTROL_SOURCES})

set(MOBILE_SOURCES
        ${MOBILE_CURTAIN_SOURCES}
        ${MOBILE_PCSCREEN_SOURCES}
        ${CONTROL_SOURCES}
        pcscreenmanage.h
        pcscreenmanage.cpp
        screenmanagemsg.pb.h
        screenmanagemsg.pb.cc
        )
add_library(pcscreenmanage ${MOBILE_SOURCES})

target_include_directories(pcscreenmanage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/curtain)
target_include_directories(pcscreenmanage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/pcscreen)
target_include_directories(pcscreenmanage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/control)
target_include_directories(pcscreenmanage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

find_package(Qt5WebEngineWidgets COMPONENTS WebEngineWidgets REQUIRED)

target_link_libraries(pcscreenmanage PUBLIC
        Qt${QT_VERSION_MAJOR}::Widgets
        ${Qt5WebEngineWidgets_LIBRARIES}
        )




